package main

import (
	"os"
	"os/signal"
	"robotDaBai/public/lib"
	"robotDaBai/router"
	"syscall"
)

func main() {
	lib.InitModule("./conf/dev/",[]string{"base","mysql"})
	//延迟销毁资源
	defer lib.Destroy()
	//启动服务器
	router.HttpServerRun()
	quti:=make(chan os.Signal)
	signal.Notify(quti,syscall.SIGKILL,syscall.SIGQUIT,syscall.SIGINT,syscall.SIGTERM)
	<-quti

	//服务器停止
	router.HttpServerStop()
}

